import createAxios from '/@/utils/axios'

export const url = '/admin/Dashboard/'

export function index() {
    return createAxios({
        url: url + 'index',
        method: 'get',
    })
}
export function showNews(params: anyObj = {}) {
    return createAxios({
        url: '/admin/Notice/edit',
        method: 'get',
        params: params,
    })
}
export function apiChartData(params: anyObj = {}) {
    return createAxios({
        url: '/admin/Complaint/latestChart',
        method: 'get',
        params: params,
    })
}
//设备预警
export function deviceWarning(params: anyObj = {}) {
    return createAxios({
        url: '/admin/Device/warningList',
        method: 'get',
        params: params,
    })
}

//所有市场
export function allMarket(params: anyObj = {}) {
    return createAxios({
        url: '/admin/Market/all',
        method: 'get',
        params: params,
    })
}